package com.example.todolist.database

import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.example.todolist.database.DAO.CategoryDao
import com.example.todolist.database.DAO.TodoDao
import com.example.todolist.database.model.CategoryEntity
import com.example.todolist.database.model.TodoEntity

@Database(entities = [TodoEntity::class, CategoryEntity::class], version = 6, exportSchema = false)
abstract class Mydatabase : RoomDatabase() {
    abstract fun getTodoDao(): TodoDao
    abstract fun getCategoryDao(): CategoryDao
}